package com.engine4cloud.tdf.supervision.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.engine4cloud.tdf.common.data.datascope.TdfBaseMapper;
import com.engine4cloud.tdf.supervision.dto.query.GzryFunctionaryQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.GzryFunctionaryResultDTO;
import com.engine4cloud.tdf.supervision.entity.GzryFunctionaryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GzryFunctionaryMapper extends TdfBaseMapper<GzryFunctionaryEntity> {

    String findDeptMaxCode(@Param("orgCode") String orgCode);

    IPage<GzryFunctionaryResultDTO> pageList(Page<GzryFunctionaryEntity> page, @Param("dto") GzryFunctionaryQueryDTO dto, @Param("deptIdList") List<Long> deptIdList);
}